home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1159 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 2c 63 6f 6d 70 | 2e 6c 61 6e 67 2e 6f 62 |g.c,comp|.lang.ob|
|00000080| 6a 65 63 74 69 76 65 2d | 63 0a 53 75 62 6a 65 63 |jective-|c.Subjec|
|00000090| 74 3a 20 52 65 3a 20 43 | 6f 6d 6d 61 20 44 65 6c |t: Re: C|omma Del|
|000000a0| 69 6d 69 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |imited f|unction |
|000000b0| 77 61 6e 74 65 64 0a 44 | 61 74 65 3a 20 54 68 75 |wanted.D|ate: Thu|
|000000c0| 2c 20 31 31 20 4a 61 6e | 20 31 39 39 36 20 31 33 |, 11 Jan| 1996 13|
|000000d0| 3a 35 39 3a 31 30 20 2d | 30 36 30 30 0a 4f 72 67 |:59:10 -|0600.Org|
|000000e0| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 55 6e 69 76 65 |anizatio|n: Unive|
|000000f0| 72 73 69 74 79 20 6f 66 | 20 49 6f 77 61 2c 20 49 |rsity of| Iowa, I|
|00000100| 6f 77 61 20 43 69 74 79 | 2c 20 49 41 2c 20 55 53 |owa City|, IA, US|
|00000110| 41 0a 44 69 73 74 72 69 | 62 75 74 69 6f 6e 3a 20 |A.Distri|bution: |
|00000120| 77 6f 72 6c 64 0a 4d 65 | 73 73 61 67 65 2d 49 44 |world.Me|ssage-ID|
|00000130| 3a 20 3c 50 69 6e 65 2e | 41 33 32 2e 33 2e 39 31 |: <Pine.|A32.3.91|
|00000140| 2e 39 36 30 31 31 31 31 | 33 35 35 31 39 2e 37 33 |.9601111|35519.73|
|00000150| 32 31 33 49 2d 31 30 30 | 30 30 30 40 62 6c 61 63 |213I-100|000@blac|
|00000160| 6b 2e 77 65 65 67 2e 75 | 69 6f 77 61 2e 65 64 75 |k.weeg.u|iowa.edu|
|00000170| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 34 |>.Refere|nces: <4|
|00000180| 64 31 6c 34 32 24 6d 62 | 36 40 76 6f 79 61 67 65 |d1l42$mb|6@voyage|
|00000190| 72 2e 49 6e 74 65 72 6e | 65 78 2e 4e 45 54 3e 20 |r.Intern|ex.NET> |
|000001a0| 3c 34 64 33 63 76 76 24 | 66 73 6d 40 6e 65 77 73 |<4d3cvv$|fsm@news|
|000001b0| 2e 69 6e 66 69 2e 6e 65 | 74 3e 0a 4e 4e 54 50 2d |.infi.ne|t>.NNTP-|
|000001c0| 50 6f 73 74 69 6e 67 2d | 48 6f 73 74 3a 20 62 6c |Posting-|Host: bl|
|000001d0| 61 63 6b 2e 77 65 65 67 | 2e 75 69 6f 77 61 2e 65 |ack.weeg|.uiowa.e|
|000001e0| 64 75 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |du.Mime-|Version:|
|000001f0| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000200| 65 3a 20 54 45 58 54 2f | 50 4c 41 49 4e 3b 20 63 |e: TEXT/|PLAIN; c|
|00000210| 68 61 72 73 65 74 3d 55 | 53 2d 41 53 43 49 49 0a |harset=U|S-ASCII.|
|00000220| 58 2d 53 65 6e 64 65 72 | 3a 20 72 6f 62 69 6e 73 |X-Sender|: robins|
|00000230| 6f 6e 40 62 6c 61 63 6b | 2e 77 65 65 67 2e 75 69 |on@black|.weeg.ui|
|00000240| 6f 77 61 2e 65 64 75 0a | 49 6e 2d 52 65 70 6c 79 |owa.edu.|In-Reply|
|00000250| 2d 54 6f 3a 20 3c 34 64 | 33 63 76 76 24 66 73 6d |-To: <4d|3cvv$fsm|
|00000260| 40 6e 65 77 73 2e 69 6e | 66 69 2e 6e 65 74 3e 20 |@news.in|fi.net> |
|00000270| 0a 0a 4f 6e 20 31 31 20 | 4a 61 6e 20 31 39 39 36 |..On 11 |Jan 1996|
|00000280| 2c 20 47 72 65 67 20 44 | 69 47 69 6f 72 67 69 6f |, Greg D|iGiorgio|
|00000290| 20 77 72 6f 74 65 3a 0a | 3e 20 49 61 6e 2c 20 68 | wrote:.|> Ian, h|
|000002a0| 65 72 65 27 73 20 79 6f | 75 72 20 61 6e 73 77 65 |ere's yo|ur answe|
|000002b0| 72 2e 20 54 68 65 20 6b | 65 79 20 69 73 20 74 68 |r. The k|ey is th|
|000002c0| 65 20 22 73 74 72 74 6f | 6b 22 20 66 75 6e 63 74 |e "strto|k" funct|
|000002d0| 69 6f 6e 2e 20 0a 3e 20 | 0a 3e 20 23 69 6e 63 6c |ion. .> |.> #incl|
|000002e0| 75 64 65 20 3c 73 74 72 | 69 6e 67 2e 68 3e 0a 3e |ude <str|ing.h>.>|
|000002f0| 20 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f | #includ|e <stdio|
|00000300| 2e 68 3e 0a 3e 20 76 6f | 69 64 20 6d 61 69 6e 20 |.h>.> vo|id main |
|00000310| 28 76 6f 69 64 29 20 7b | 0a 0a 3c 63 6f 75 67 68 |(void) {|..<cough|
|00000320| 3e 0a 0a 3e 20 20 20 20 | 63 68 61 72 20 62 75 66 |>..> |char buf|
|00000330| 5b 5d 3d 7b 22 31 32 33 | 34 35 2c 36 37 38 39 30 |[]={"123|45,67890|
|00000340| 2c 31 32 33 34 35 22 7d | 3b 0a 0a 20 20 20 57 68 |,12345"}|;.. Wh|
|00000350| 61 74 20 69 66 20 49 20 | 63 68 61 6e 67 65 20 74 |at if I |change t|
|00000360| 68 69 73 20 74 6f 3a 0a | 0a 20 20 63 68 61 72 20 |his to:.|. char |
|00000370| 62 75 66 5b 5d 20 3d 20 | 22 31 32 33 34 35 2c 2c |buf[] = |"12345,,|
|00000380| 36 37 38 39 30 2c 31 32 | 33 34 35 22 3b 0a 0a 3e |67890,12|345";..>|
|00000390| 20 20 20 20 63 68 61 72 | 20 2a 73 3b 0a 3e 20 0a | char| *s;.> .|
|000003a0| 3e 20 20 20 20 73 3d 73 | 74 72 74 6f 6b 28 62 75 |> s=s|trtok(bu|
|000003b0| 66 2c 22 2c 22 29 3b 20 | 2f 2a 20 46 69 72 73 74 |f,","); |/* First|
|000003c0| 20 63 61 6c 6c 20 74 6f | 20 73 74 72 74 6f 6b 2c | call to| strtok,|
|000003d0| 20 70 61 73 73 20 65 6e | 74 69 72 65 20 62 75 66 | pass en|tire buf|
|000003e0| 66 65 72 20 2a 2f 0a 3e | 20 20 20 20 77 68 69 6c |fer */.>| whil|
|000003f0| 65 20 28 73 29 20 7b 20 | 20 20 20 20 20 20 20 2f |e (s) { | /|
|00000400| 2a 20 57 68 69 6c 65 20 | 73 74 72 74 6f 6b 20 72 |* While |strtok r|
|00000410| 65 74 75 72 6e 73 20 61 | 20 6e 6f 6e 2d 4e 55 4c |eturns a| non-NUL|
|00000420| 4c 20 76 61 6c 75 65 2c | 20 6c 6f 6f 70 20 2a 2f |L value,| loop */|
|00000430| 0a 3e 20 20 20 20 20 20 | 20 70 72 69 6e 74 66 28 |.> | printf(|
|00000440| 22 25 73 5c 6e 22 2c 73 | 29 3b 20 2f 2a 20 64 69 |"%s\n",s|); /* di|
|00000450| 73 70 6c 61 79 20 70 61 | 72 73 65 64 20 76 61 6c |splay pa|rsed val|
|00000460| 75 65 20 2a 2f 0a 3e 20 | 20 20 20 20 20 20 73 3d |ue */.> | s=|
|00000470| 73 74 72 74 6f 6b 28 4e | 55 4c 4c 2c 22 2c 22 29 |strtok(N|ULL,",")|
|00000480| 3b 20 2f 2a 20 47 65 74 | 20 6e 65 78 74 20 76 61 |; /* Get| next va|
|00000490| 6c 75 65 20 2d 20 6e 6f | 74 69 63 65 20 74 68 65 |lue - no|tice the|
|000004a0| 20 4e 55 4c 4c 20 2a 2f | 0a 3e 20 20 20 20 7d 0a | NULL */|.> }.|
|000004b0| 0a 20 20 72 65 74 75 72 | 6e 20 30 3b 0a 0a 3e 20 |. retur|n 0;..> |
|000004c0| 7d 0a 0a 20 20 54 68 69 | 73 20 77 69 6c 6c 20 72 |}.. Thi|s will r|
|000004d0| 65 74 75 72 6e 20 74 68 | 65 20 63 6f 72 72 65 63 |eturn th|e correc|
|000004e0| 74 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 6f 6b 65 |t number| of toke|
|000004f0| 6e 73 20 6f 6e 6c 79 20 | 69 66 20 6e 6f 6e 65 20 |ns only |if none |
|00000500| 6f 66 20 74 68 65 20 66 | 69 65 6c 64 73 20 0a 77 |of the f|ields .w|
|00000510| 69 6c 6c 20 65 76 65 72 | 20 62 65 20 30 20 6c 65 |ill ever| be 0 le|
|00000520| 6e 67 74 68 2e 20 20 49 | 27 76 65 20 68 61 64 20 |ngth. I|'ve had |
|00000530| 65 6e 6f 75 67 68 20 25 | 26 28 2a 23 29 40 26 25 |enough %|&(*#)@&%|
|00000540| 2a 28 23 40 20 62 61 74 | 74 6c 65 73 20 77 69 74 |*(#@ bat|tles wit|
|00000550| 68 20 0a 73 74 72 74 6f | 6b 28 29 20 74 6f 20 62 |h .strto|k() to b|
|00000560| 65 20 76 65 72 79 20 77 | 61 72 79 20 6f 66 20 69 |e very w|ary of i|
|00000570| 74 2e 20 3a 29 0a 0a 2f | 2a 2a 4a 61 6d 65 73 20 |t. :)../|**James |
|00000580| 52 6f 62 69 6e 73 6f 6e | 2a 2a 2a 2a 2a 2a 2a 2a |Robinson|********|
|00000590| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |********|******* |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 0a 20 20 22 49 | | . "I|
|000005b0| 66 20 61 20 66 61 74 61 | 6c 20 65 72 72 6f 72 20 |f a fata|l error |
|000005c0| 6f 63 63 75 72 73 2c 20 | 74 68 65 20 70 72 6f 67 |occurs, |the prog|
|000005d0| 72 61 6d 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 62 |ram shou|ld not b|
|000005e0| 65 20 61 6c 6c 6f 77 65 | 64 20 74 6f 20 63 6f 6e |e allowe|d to con|
|000005f0| 74 69 6e 75 65 2e 22 0a | 20 2d 2d 20 4f 72 61 63 |tinue.".| -- Orac|
|00000600| 6c 65 20 50 72 6f 2a 43 | 20 55 73 65 72 27 73 20 |le Pro*C| User's |
|00000610| 47 75 69 64 65 20 20 20 | 20 20 20 20 20 20 2a 2a |Guide | **|
|00000620| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 6a 61 6d 65 73 |********|***james|
|00000630| 2d 72 6f 62 69 6e 73 6f | 6e 40 75 69 6f 77 61 2e |-robinso|n@uiowa.|
|00000640| 65 64 75 2a 2a 2f 0a | |edu**/. | |
+--------+-------------------------+-------------------------+--------+--------+